class NewsController < ApplicationController

	def index
		list
		render('list')
	end

	def list
		@news = News.order("news.name ASC")
	end

	def show
		@produce = News.find(params[:id])
	end

	def new
		@new = News.new
	end

	def create
		@new = News.new(params[:news])

		if @new.save
		  	redirect_to(:action => 'list')
		else
		  	render('new')
		end
	end
end
